package cn.iocoder.yudao.module.diy.dal.diy;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 页面json数据新增/修改 Request VO")
@Data
public class DiyTemplateJsonSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26548")
    private Integer id;

    @Schema(description = "配置项关键字", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置项关键字不能为空")
    private String templateKey;

    @Schema(description = "配置值json")
    private String templateJson;

    @Schema(description = "是否启用 1启用 0不启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "是否启用 1启用 0不启用不能为空")
    private Integer status;

}